package com.ruix.app.network.okhttp;

import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;

import java.io.IOException;

/**
 * Created by hadexs on 2017/4/12.
 */
public class PostJsonRequest extends BaseRequest {

    // 执行请求
    public static Response execute(OkHttpClient client, String url, String jsonContent) throws IOException {
        Request request = getPostJsonRequest(url, jsonContent);
        return execute(client, request);// 执行在调用者线程
    }
}